package dk.netl.dashboard;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import dk.netl.dashboard.widgets.alivewidget.AliveWidget;
import dk.netl.dashboard.widgets.burndownwidget.BurndownWidget;

var scene: Scene;

Stage {
    title: "Netl Dashboard"
    scene: scene = Scene {
//        width: 1280
//        height: 724
        content: [
            ImageView {
                image: Image {
                    url: "{__DIR__}P1020298.jpg"
                }
                //fitHeight: bind scene.height // todo fix aspect ratio when resizing
                fitWidth: bind scene.width
                preserveRatio: true
            },

            AliveWidget {
                width: 450
                height: 400
                layoutX: 100
                layoutY: 100
            },

            BurndownWidget {
                width: 540
                height: 660
                layoutX: 600
                layoutY: 100
            }
        ]
    }
}
